package com.xzmd.md_city.entity;

/**
 * @Author Corday
 * @Date 2021-7-9
 * 商品信息实体类
 */
public class ProductInfo {
//    商品的编号
    private int id;
//    商品名称
    private String name;
//    商品条形码
    private String code;
//    商品的类别
    private String type;
//    商品的品牌
    private String brand;
//    商品的图片文件名
    private String pic;
//    商品的数量
    private int num;
//    商品的原价
    private float price;
//    商品的折扣价
    private  float sale;
//    商品的简介
    private  String intro;
//    商品的状态:1,2,3,4分别代表：上架、下架、已售、缺货
    private  int status;
//    生成无参构造器
    public ProductInfo() {
    }
//    生成有参构造器
    public ProductInfo(int id, String name, String code, String type, String brand, String pic, int num, float price, float sale, String intro, int status) {
        this.id = id;
        this.name = name;
        this.code = code;
        this.type = type;
        this.brand = brand;
        this.pic = pic;
        this.num = num;
        this.price = price;
        this.sale = sale;
        this.intro = intro;
        this.status = status;
    }
//    生成get/set方法

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public float getPrice() {
        return price;
    }

    public void setPrice(float price) {
        this.price = price;
    }

    public float getSale() {
        return sale;
    }

    public void setSale(float sale) {
        this.sale = sale;
    }

    public String getIntro() {
        return intro;
    }

    public void setIntro(String intro) {
        this.intro = intro;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }
}
